package cn.enilu.guns.bean.entity.door;


import lombok.Data;
import cn.enilu.guns.bean.entity.BaseEntity;
import org.hibernate.annotations.Table;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;

@Entity(name="T_ENTRANCE_GARD_USER")
@Table(appliesTo = "t_entrance_gard_user",comment = "门禁权限与人员关系表")
@Data
@EntityListeners(AuditingEntityListener.class)
public class EntranceGardUser extends BaseEntity {

	/**
	 * 
	 */
	@Column(columnDefinition = " INT(10) COMMENT ''")
	private Integer version;

	/**
	 * 权限id
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '权限id'")
	private Long ruleId;

	/**
	 * 人员id
	 */
	@Column(columnDefinition = " BIGINT(19) COMMENT '人员id'")
	private Long userId;

	/**
	 * 状态
	 */
	@Column(columnDefinition = " VARCHAR(12) COMMENT '状态'")
	private String staus;


}
